<template>
    <div class="login">
        <Logo />
        <div class="text_s1">Welcome to 问问</div>
        <div class="text_s2">使用您的 问问 账户登录以继续</div>
        <div class="btn">
            <div @click="login">登录</div>
            <div @click="signUp">注册</div>
        </div>
    </div>
</template>

<script setup lang="ts">
import {ref} from 'vue'
import {useRoute, useRouter} from 'vue-router'
import {Logo} from '@/components'
const router = useRouter()
//登录
const login = () => {
  router.push('loginUser')
}
//注册
const signUp = () => {
  router.push('signUp')
}
</script>

<style scoped lang="scss">
.login {
  height: 100%;
  width: 100vw;
  background: rgb(247, 247, 248);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 25px;

  div {
    padding: 8px 12px;
    background: rgb(16, 163, 127);
    font-size: 14px;
    color: #fff;
    margin-right: 12px;
    cursor: pointer;
    border-radius: 4px;

    &:last-child {
      margin: 0;
    }

    &:hover {
      background: rgba(26, 127, 100);
    }
  }
}

.text_s1 {
  margin-top: 10vh;
  color: rgb(32, 35, 38);
  font-family: Microsoft YaHei;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.text_s2 {
  color: rgb(32, 35, 38);
  margin-top: 25px;
    font-size: 30px;
}
</style>